/******************************************************************************

	filename :  TileContent.fx
	version  :  0.1
	author   :  Bernardo Z. Cinco Jr.
	date     :  July 19, 2010   
	
	Description:
	 > Field contents of a tile.

******************************************************************************/

package mythesis.gui.tile;
import mythesis.controller.TileContentCreator;

import javafx.scene.*;
import javafx.scene.text.*;


public class TileContent extends CustomNode
{
    public var numType:Number;
    public var arrTileField:TileField[];
    public var tcc:TileContentCreator = new TileContentCreator();
    public var g:Group;
    
	public function laman(i:Integer)
	{
	    return g.content[i];
	}
    
    override public function create():Node
    {
        arrTileField = tcc.getContent(numType);       

        g = Group
        {
            content:
            [
            	arrTileField
            ]
        };
        
        return g;
    }
}